package com.yzpc.mapper;

import com.yzpc.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    public User findUserByLogin(User user);
    public int insertUser(User user);
    public int updateUserById(User user);
    public int updateUserByName(User user);
    public void deleteUserById(Integer userId);
    public void deleteUserByName(String userName);

    public List<User> findUserList(User user);
    public User findUserById(Integer userId);
    public User findUserByName(String userName);
}
